<?php $this->load->view('backend/header'); ?>

<body class="black">

<?php $this->load->view('backend/top'); ?>
<?php $this->load->view('backend/slidebar'); ?>
	<!-- Style customize -->
	<style>
		#h1_top{
			margin-bottom:10px;
		}
	</style>
	
	<!-- Home page -->
	<input type='hidden' value='protfolio' class='page' />
	
	<!-- CONTENT -->
	<div id="content">
		<h1 id='h1_top'><img src="<?php echo $template_url.'images/' ?>/icons/posts.png" alt=""> <?php echo $data['name'] ?> </h1>	
		
		<!-- Success notification -->
		<?php if(isset($error) && $error === 0): ?>
		<div class="notif success">
            <strong>Success :</strong>  Upload success
            <a href="#" class="close"></a>
        </div>
        <?php endif; ?>
        
        <!-- Success notification -->
        <?php if(isset($error) && $error !== 0): ?>
		<div class="notif error">
            <strong>Error :</strong>   <?php echo $error ?>
            <a href="#" class="close"></a>
        </div>
        <?php endif; ?>			
		
		<div class="bloc">
			<div class="title"> <?php echo $data['name'] ?> </div>
				<form method='POST' action='' id='form' enctype="multipart/form-data">
					<div class="content">
					
				        <div class="input">
				            Name:<input type="text" class="range min-10 max-60" value='<?php echo $data['name'] ?>' rel='required' name='name'>
				        </div>
				        
						<div class="submit" style='text-align: center; margin-top:10px;'>
						    <input type="submit" value="Update" class="button black" id='update' name='update'>
					</div>	
				</form>
			</div>
		</div>
	</div>
</body>
</html>
